package com.csair.platform.cit.service.dao.a200000;

import com.csair.platform.cit.service.entity.CitDeclareRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.csair.platform.cit.service.entity.CitNsrxx;


@Repository
public interface CitNsrxxRepository extends JpaRepository<CitNsrxx, Long>, JpaSpecificationExecutor<CitNsrxx> {


    /**
     * 根据税号和税款属期查询
     * @param nsrsbh
     * @param skssqq
     * @param skssqz
     * @return
     */
    @Query(value = "from CitNsrxx where nsrsbh =?1 and    skssqq =?2 and skssqz =?3")
    CitNsrxx findByTaxNoAndSkss(String nsrsbh, String skssqq, String skssqz);
}
